
package com.yimixian.app.util;

import rx.Subscription;

import javax.annotation.Nullable;

public class ObservableUtils {

    public static Subscription unsubscribe(@Nullable Subscription subscription) {
        if (subscription != null && !subscription.isUnsubscribed()) {
            subscription.unsubscribe();
        }
        return null;
    }
}
